package repository

import (
	"github.com/RaymondCode/simple-demo/entity/po"
	"gorm.io/gorm"
)

type Favorite interface {
	// Insert 插入一条喜欢记录
	Insert(favorite *po.Favorite, tx *gorm.DB, isTx bool) error
	// QueryVideoIdByUserId 根据用户ID查询喜欢列表
	QueryVideoIdByUserId(userId int) ([]int, error)
	// DeleteByCondition 条件删除喜欢数据
	DeleteByCondition(favorite *po.Favorite, tx *gorm.DB, isTx bool) error
}
